  export function reloadLoginStatus(store) {
  const cookies = document.cookie.split('; ')
  const longTermToken = cookies.find(c => c.startsWith('longTermToken='))
  const token = cookies.find(c => c.startsWith('token='))
  if (longTermToken && token) {
    store.dispatch("login", {
      token: token.split('=')[1],
      longTermToken: longTermToken.split('=')[1]
    })
  }
}